﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="DocumentManagement.Views.ChargeConfirmation" %>

<%@ Import Namespace="DocumentManagement.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        等待最终确认收费的报告和预估单</h2>
    <div>
        <h3>
            等待最终确认收费的报告</h3>
    </div>
    <div>
        <table>
            <tr>
                <td>
                    文件编号
                </td>
                <td>
                    委托来源
                </td>
                <td>
                    委托方
                </td>
                <td>
                    项目座落
                </td>
                <td>
                    开票金额
                </td>
                <td>
                    实收金额
                </td>
                <td>
                    收费日期
                </td>
                <td>
                </td>
            </tr>
            <%
                foreach (var bg in this.Model.BGs)
                {
            %>
            <tr>
                <%using (this.Html.BeginForm("ConfirmBaoGaoCharge", "toll", FormMethod.Post))
                  {%>
                <td>
                    <a target="_blank" href="<%=this.Url.Action("ShowBaoGaoDetail", "baogao", new {id = bg.id}) %>">
                        <%=bg.wjbh%></a>
                    <input type="hidden" name="bgId" value="<%=bg.id%>" />
                </td>
                <td>
                    <%=bg.wtly%>
                </td>
                <td>
                    <%=bg.wtf%>
                </td>
                <td>
                    <%=bg.xmzl%>
                </td>
                <td>
                    <%=bg.kpje %>
                </td>
                <td>
                    <%=bg.shshje %>
                </td>
                <td>
                    <input type="text" name="shfrq" />
                </td>
                <td>
                    <input type="submit" value="确认收费" />
                </td>
                <%} %>
            </tr>
            <%} %>
        </table>
    </div>
    <div>
        <h3>
            等待最终确认收费的预估单</h3>
    </div>
    <table>
        <tr>
            <td>
                预估编号
            </td>
            <td>
                委托来源
            </td>
            <td>
                委托方
            </td>
            <td>
                项目座落
            </td>
            <td>
                开票金额
            </td>
            <td>
                实收金额
            </td>
            <td>
                收费日期
            </td>
            <td>
            </td>
        </tr>
        <%foreach (var ygd in this.Model.YGDs)
          { %>
        <tr>
            <%using (this.Html.BeginForm("ConfirmYuGuDanCharge", "toll", FormMethod.Post))
              {%>
            <td>
                <input type="hidden" name="id" value="<%=ygd.id %>" />
                <a target="_blank" href="<%=this.Url.Action("ShowYuGuDanDetail", "yugudan", new {id = ygd.id}) %>">
                    <%=ygd.ygbh%>
                </a>
            </td>
            <td>
                <%=ygd.wtly%>
            </td>
            <td>
                <%=ygd.wtf%>
            </td>
            <td>
                <%=ygd.xmzl%>
            </td>
            <td>
                <%=ygd.kpje%>
            </td>
            <td>
                <%=ygd.shshje %>
            </td>
            <td>
                <input type="text" name="shfrq" />
            </td>
            <td>
                <input type="submit" value="确认收费" />
            </td>
            <%} %>
        </tr>
        <%}%>
    </table>
</asp:Content>
